import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import axios from './config/axios'
import VueAxios from 'vue-axios'
import KalixVueLib from './components/corelib'
import Global from './global'
import './element-ui'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false
Vue.use(Global)
Vue.use(VueAxios, axios)
Vue.use(KalixVueLib)

/* eslint-disable no-new */
new Vue({
  components: {App},
  router,
  store,
  template: '<App/>'
}).$mount('#app')
